package com.zhangxu.junior.service.impl;

import com.zhangxu.junior.domain.StudentCourse;
import com.zhangxu.junior.mapper.StudentCourseMapper;
import com.zhangxu.junior.service.IStudentCourseService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Author zhang xu
 * @Date 2022/6/21 15:04
 * @PackageName:com.zhangxu.junior.service.impl
 * @ClassName: StudentCourseServiceImpl
 * @Description: TODO
 * @Version 1.0
 */
@Service
public class StudentCourseServiceImpl implements IStudentCourseService {

    @Autowired
    StudentCourseMapper studentCourseMapper;

    @Override
    public List<StudentCourse> selectCourseBystudent(StudentCourse studentCourse) {
        return studentCourseMapper.selectCourseBystudent(studentCourse);
    }

    @Override
    public int delteStudentCourse(Long studentId) {
        return studentCourseMapper.delteStudentCourse(studentId);
    }

    @Override
    public int insertStudentCourse(StudentCourse studentCourse) {
        return studentCourseMapper.insertStudentCourse(studentCourse);
    }


//    @Override
//    public StudentCourse selectCourseBystudent(StudentCourse studentCourse) {
//        return studentCourseMapper(studentCourse);
//    }

}
